package com.team.vlog_temp.Dao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public class ConsumerDao {
    private  JdbcTemplate jdbcTemplate;

    @Autowired
    public ConsumerDao(JdbcTemplate jdbcTemplate) {
        this.jdbcTemplate = jdbcTemplate;
    }

    public List<Map<String, Object>> getPeople() {
        String sql="";
        sql=" SELECT * FROM pua_consumer ";
        return jdbcTemplate.queryForList(sql);
    }
}
